package SwordForOffer.Problem17;

public class Problem17test {
	public static void main(String args[]) {
		ListNode head1=new ListNode();
		ListNode second1=new ListNode();
		ListNode third1=new ListNode();
		ListNode head2=new ListNode();
		ListNode second2=new ListNode();
		ListNode third2=new ListNode();
		head1.nextNode=second1;
		second1.nextNode = third1;

		head2.nextNode=second2;
		second2.nextNode=third2;

		head1.data=1;
		second1.data=3;
		third1.data=5;

		head2.data=2;
		second2.data=4;
		third2.data=6;

		MyMerge test = new MyMerge();
		ListNode result = test.mergeDiGui(head1,head2);
		System.out.println(result.data);
		while (result.nextNode != null){
			result = result.nextNode;
			System.out.println(result.data);
		}


		
	}

}
